package com.gel.shortLink.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gel.shortLink.admin.dao.entity.User;
import com.gel.shortLink.admin.dto.req.UserLoginRepDTO;
import com.gel.shortLink.admin.dto.req.UserReqDTO;
import com.gel.shortLink.admin.dto.req.UserUpdateRepDTO;
import com.gel.shortLink.admin.dto.resp.UserLoginRespDTO;
import com.gel.shortLink.admin.dto.resp.UserRespDTO;

/**
* @author gel
* @description 针对表【t_user】的数据库操作Service
* @createDate 2025-07-07 11:10:42
*/
public interface UserService extends IService<User> {

    UserRespDTO getUserByUsername(String username);

    boolean hasUserName(String username);

    void register(UserReqDTO requestParam);

    UserLoginRespDTO login(UserLoginRepDTO requestParam);


    Boolean checkLogin(String username, String token);

    void logout(String username, String token);

    void update(UserUpdateRepDTO requestParam);
}
